addSharedElement
open fun addSharedElement(@NonNull sharedElement: View, @NonNull name: String): FragmentTransaction(source)
Used with custom Transitions to map a View from a removed or hidden Fragment to a View from a shown or added Fragment. sharedElement must have a unique transitionName in the View hierarchy.
Parameters
sharedElement
A View in a disappearing Fragment to match with a View in an appearing Fragment.
name
The transitionName for a View in an appearing Fragment to match to the shared element.